package com.geovis.emergency.spd.entity.basic.pojo.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 素材修改DTO
 * </p>
 *
 * @author 王响
 * @since 2020-09-08
 */
@Getter
@Setter
@ToString(callSuper = true)
@ApiModel(value = "素材修改DTO对象", description = "素材修改DTO")
public class BasicMaterialUpdateDTO implements Serializable {

    @NotBlank(message = "主键id不能为空")
    @Length(max = 64, message = "主键id最长不能超过{64}个字符")
    @ApiModelProperty(value = "主键id", required = true)
    private String id;

    @NotBlank(message = "类型不能为空")
    @Length(max = 16, message = "类型最长不能超过{16}个字符")
    @ApiModelProperty(value = "类型", required = true)
    private String type;

    @Length(max = 255, message = "类型最长不能超过{255}个字符")
    @ApiModelProperty("标签 多个用逗号分开")
    private String tag;
}
